package com.jinxin.platform.cdacscontrolmgr.common;

/**
 * All rights Reserved, Designed By www.beonelot.com
 *
 * @version: V1.0
 * @Copyright: www.beonelot.com Inc. All rights reserved.
 * @Description：
 * @Date: 2020-07-17
 * @Author: Lingnan
 **/
public class Constant {
    public static final String MODULE_KEY = "apcos-cdacscontrolmgr";
    public static final String MODULE_CLASS_NAME = "CdacscontrolmgrRpcService";
    public static final String UPLOAD_FILE_MIDDLE_PATH = "/module/apcos-cdacscontrolmgr/files/";

    public static final String PRODUCT_CODE_ACS = "0008d203";

    public static final String NEW_PRODUCT_CODE_ACS = "0008d204";

    public static final String PRODUCT_CODE_CAR = "0008d504";

    public static final String CMD_NAME_RETURNIVSRESULT = "returnivsresult";//车辆识别车牌上报
    public static final String CMD_NAME_PICTURE = "picture";//车辆识别图片上报
    public static final String CMD_NAME_RETURN_SNAPSHOT = "return_snapshot";//返回当前抓取的图片
    public static final String CMD_NAME_SNAPSHOT_DATA_PUSH = "Snapshot_data_push";//人脸识别上报
    public static final String PRODUCT_CODE_DYNBDC = "00091601";//大域NB地磁
    public static final String CMD_NAME_STATUS_REPORTING = "Status_Reporting";//车位无车上报
    public static final String CMD_NAME_HAVE_CAR = "Have_car";//车位有车上报
    public static final String CMD_NAME_CARD_SWIPING_RECORD = "Card_swiping_record";//传送刷卡记录(包括密码输入)

    public static final Integer PROJECT_STATUS_ENABLED = 2;//项目状态-启用
    public static final Integer PROJECT_TYPE_ACS = 2;//项目类型-门禁
    public static final Integer BARRIER_DIRECTION_IN = 1;


    public static final String IMG_BASE64_PREFIX = "^data:image\\/[a-zA-Z]+;base64,";
    // 状态1待来访2未到访3已到访
    public static final Integer REGIST_INFO_STATUS_NEW = 1;
    public static final Integer ACS_REGIST_NOT_COME = 2;
    public static final Integer REGIST_INFO_STATUS_FINISHED = 3;

    // 车牌识别包序号是000
    public static final String IOCTL_RESP_BXH = "000";
    // 先通后断的延迟时间
    public static final String IOCTL_RESP_DELAYTIME = "0";
    public static final String IOCTL_RESP_IOCODE = "0";
    // 输出 IO 的状态值 [{"key":"断","value":"0"},{"key":"通","value":"1"},{"key":" 先通后断","value":"2"}]
    public static final String IOCTL_RESP_STATUSVALUE = "2";
    // 交易状态1.未缴费2.已缴费3.退款
    public static final Integer DEAL_STATUS_UNPAYED = 1;
    public static final Integer DEAL_STATUS_PAYED = 2;
    // 是否删除  1.删除 2.不删除
    public static final Integer ORDER_DELETED = 1;
    public static final Integer ORDER_UNDELETED = 2;

    // 订单来源 1.车场临停2.车场包时3.路边停车 4.门禁停车
    public static final Integer ORDER_FROM_ACS = 4;
    public static final Integer ORDER_FROM_CCBS = 2;

    // 通知的标题类型 1入场 2缴费 3出场
    public static final String TITLE_TYPE_ENTRANCE = "1";
    public static final String TITLE_TYPE_PAY = "2";
    public static final String TITLE_TYPE_EXIT = "3";

    public static final String DATE_PATTERRN = "yyyy-MM-dd";
    // 规则类型1.临停收费规则2.包时收费规则
    public static final Integer RULE_TYPE_TEMP = 1;
    public static final Integer RULE_TYPE_BAOSHI = 2;

    public static final String REDIS_PREFIX_ALARM = "alarm_";

    // 消息状态1已读2未读
    public static final Integer MSG_STATUS_READ = 1;
    public static final Integer MSG_STATUS_UNREAD = 2;

    // 1 代管中 2 未代管
    public static final Integer MANAGER_FLAG_YES = 1;
    public static final Integer MANAGER_FLAG_NO = 2;
    public static final String ZERO = "0";
    public static final String CHARSET_GBK = "GBK";
    // json结束符"}
    public static final String REGEX_JSON_RIGHT = "\"}";

    public static final String QUZRTZ_GROUP_PREFIX = "group";

    public static final String REDIS_PREFIX_VISITER_PHONE = "visiter_phone_";
    // 进出方式:正常
    public static final String JCFS_NORMAL = "正常";

    // 事件类型1语音2报警3可视对讲4环境相机呼叫
    public static final Integer MSG_TYPE_VOICE = 1;
    public static final Integer MSG_TYPE_SIDEPARK_ALARM = 2;
    public static final Integer MSG_TYPE_KSDJ = 3;
    public static final Integer MSG_TYPE_HJXJ = 4;

    //小程序及公众号域名地址key
    public static final String DOMAIN_URL = "home:domain";
    public static final String QECODE_PAY_URL = "/cdfinanmod/qrCodePay/native";
    public static final String HTTPS_SCHEME = "https";

    // 包头固定为：0xAA,0X55 +地址64
    public static final String CMD_HEAD = "AA55";
    // 流水号00
    public static final String CMD_SERAL_NUM = "00";
    // 下位机 485 地址，出厂默认 100 = 0X64
    public static final String CMD_ADDR = "64";
    // 结束：固定 0xAF
    public static final String CMD_END = "AF";
    //加载临显指令 2 该指令用于 4 行临显同时下发 0x29
    public static final String CMD_SHOW4 = "29";
    //修改时间显示位置及颜色
    public static final String CMD_TIME = "F6";
    // 二维码显示指令 0x28
    public static final String CMD_SHOW_QRCODE = "28";
    // 加载广告内容指令 0x25
    public static final String CMD_SHOW_AD = "25";
    // 取消临显(即时显示)内容命令 0x21
    public static final String CMD_CANCEL_TEMP = "21";
    // 语音播放指令 0x22
    public static final String CMD_PLAY_VOICE = "22";
    // 保留
    public static final String KEEP_VALUE = "00";
    //固定长度
    public static final String FIXED_LEN_1 = "01";
    public static final String FIXED_LEN_3 = "03";

    public static final String CHARSET_GB2312 = "gb2312";

    public static final String FREE_CAR_MSG = "余位:";
    //16进制1-4行
    public static final String HEX_LINE_ONE = "01";
    public static final String HEX_LINE_TWO = "02";
    public static final String HEX_LINE_THREE = "03";
    public static final String HEX_LINE_FOUR = "04";
    public static final Integer SLEEP_TIME = 200;
    public static final Integer SLEEP_TIME_500 = 500;

    public static final String HEX_0F = "0F";

    public static final int NUM_ZERO = 0;
    public static final int NUM_ONE = 1;
    public static final int NUM_TWO = 2;
    public static final int NUM_THREE = 3;
    public static final int NUM_FOUR = 4;
    public static final int NUM_FIVE = 5;
    public static final int NUMBER_32 = 32;
    //透传指令名称
    public static final String CMD_TC = "ttransmission";
    //加载广告内容指令
    public static final String CMD_LOAD_AD = "Load_ad_content_instruction";
    //取消临显
    public static final String CMD_CANCEL_TEMP_SHOW = "Cancel_temporary_display";
    //加载临显指令 2
    public static final String CMD_LOAD_TEMP_SHOW = "Load_temporary_display_instruction2";
    public static final String DEFAULT_ID = "999999";
    public static final String SUBCMD = "send";
    public static final String COMM = "rs485-1";

    public static final String YWP_LINE_ONE = "剩余车位";
    public static final String CAR_TYPE_FREE = "免费车";
    public static final String CAR_TYPE_RENT = "月租车";
    public static final String CAR_TYPE_TEMP = "临时车";
    public static final String CAR_TYPE_BAOSHI = "包时车";
    public static final String CAR_TYPE_RGQR = "请等待人工确认";
    public static final String CAR_TYPE_QJF = "请缴费";

    //欢迎语和结束语默认hex
    public static final String WELCOME_HEX = "01";//欢迎光临

    public static final String QUERY_ORDER_URL = "/cdfinanmod/cdfinanmodApp/getLedOrderInfo";

    // 显示屏忙碌和空闲状态
    public static final String SCREEN_STATUS_BUSY = "busy";
    public static final String SCREEN_STATUS_FREE = "free";

    public static final String PAY_HEX = "0B";// 请缴费
    public static final String THE_CAR_NO_RIGHT = "此车无权限";

    public static final String PARK_TIME_PREX = "停车时长:";
    public static final String PARK_TIME_SUFFIX = "分钟";

    public static final String PARK_AMOUNT_PREX = "金额:";
    public static final String PARK_AMOUNT_SUFFIX = "元";
    // 是否认证1是2否
    public static final String IS_AUTHED = "1";

    // 是否删除1是0否
    public static final Integer IS_DEL_YES = 1;
    public static final Integer IS_DEL_NO = 0;

    public static final String FOREVER_TIME = "2099/12/31 23:59:59";

    public static final String DEFAULT_CHARSET = "UTF-8";
    public static final String KEY_AES = "AES";
    public static final String ENCRYPT_KEY = "qwe123";
    // 门编号
    public static final String DOOR_CODE = "00";
    public static final String CORRECT_PWD = "密码正确";
    public static final String ERROE_PWD = "密码错误";
    public static final String INVALID_PWD = "无效密码";
    public static final String BYTE_4_HEX_NULL = "00 00";
    public static final String BYTE_18_HEX_NULL = "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00";
    public static final String BYTE_16_HEX_NULL = "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00";
    public static final String BYTE_32_HEX_NULL = "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00";
    public static final String BYTE_20_HEX_NULL = "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00";

    //订单Id前缀
    public static final String ORDER_NUM = "ORDER_ID:";
    public static final String DEVICE_RESPONSE_R1 = "r1";
    public static final String DEVICE_RESPONSE_CODE = "code";
    // 门禁机回复 06：成功      15：不成功
    public static final String ACS_RESPONSE_SUCCESS = "06";
    // 免费规则ID是0
    public static final String FRRR_CHARGE_RULE_ID = "0";

    public static final String SPACE = " ";
}
